if (layui === undefined) {
    console.error('请先引用layui.js文件.');
} else {

    var modules = {
        common: 'extend/common',
        eleTree: 'extend/eleTree',
        dltable:'extend/dltable',
        treeGrid:'extend/treeGrid',
        treeTable:'extend/treeTable',
        yutons_sug: 'extend/yutons_sug',
        textool: 'extend/textool'
    };

    layui.injectModules(modules);
}